package cmbchina.util;



import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Map;



/**
 * 注释
 *
 * @author: Chen, Shu-Bin
 * @Date: 16-6-6
 * @Time: 上午11:26
 */
public class AjaxJson {

	private boolean success = true;// 是否成功
	private String msg = "操作成功!";// 提示信息

	private String code = "-1000";// 提示信息
	private Object obj = null;// 其他信息
	private Map<String, Object> attributes;// 其他参数

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Map<String, Object> getAttributes() {
		return attributes;
	}

	public void setAttributes(Map<String, Object> attributes) {
		this.attributes = attributes;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}


	public static void main(String [] args ){
		String a = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
		char[] rands = new char[6];
		for (int i = 0; i < rands.length; i++)
		{
			int rand = (int) (Math.random() * a.length());
			rands[i] = a.charAt(rand);
		}
		char[] rands1 = new char[2];
		a="!@#$%^&*()_+{}|<>?";
		for (int i = 0; i < rands1.length; i++)
		{
			int rand = (int) (Math.random() * a.length());
			rands1[i] = a.charAt(rand);
		}

		System.out.println(String.valueOf(rands)+String.valueOf(rands1));
		for(int i=0;i<rands.length;i++){
			System.out.println(rands[i]);
		}
	}

}
